package com.ruoyi.standingbook.v2toilet.service;

import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.standingbook.v2toilet.domain.bo.V2ToiletImpDetailBo;
import com.ruoyi.standingbook.v2toilet.domain.vo.V2ToiletImpDetailVo;

import java.util.Collection;
import java.util.List;

/**
 * V2市政公厕管养Service接口
 *
 * @author cc
 * @date 2023-06-07
 */
public interface IToiletImpDetailService {

    /**
     * 查询V2市政公厕管养
     */
    V2ToiletImpDetailVo queryById(String id);

    /**
     * 查询V2市政公厕管养列表
     */
    TableDataInfo<V2ToiletImpDetailVo> queryPageList(V2ToiletImpDetailBo bo, PageQuery pageQuery);

    /**
     * 查询V2市政公厕管养列表
     */
    List<V2ToiletImpDetailVo> queryList(V2ToiletImpDetailBo bo);

    /**
     * 新增V2市政公厕管养
     */
    Boolean insertByBo(V2ToiletImpDetailBo bo);

    Boolean batchInsertByBo(List<V2ToiletImpDetailVo> boList);
    boolean batchInsertOrUpdate(List<V2ToiletImpDetailVo> detailVo);

    /**
     * 修改V2市政公厕管养
     */
    Boolean updateByBo(V2ToiletImpDetailBo bo);

    /**
     * 校验并批量删除V2市政公厕管养信息
     */
    Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);
}
